<? include("/inc/header.html") {} ?>
<div class="col-lg-12" style="overflow: auto;height: 500px;">
	<div class="panel panel">
		<div class="panel-body pan">
			<div class="form-body pal">
				<video width="600" controls="true" controlslist="nodownload" autoplay="autoplay" id="video">
				  <!-- <source src="images/movie.mp4" type="video/mp4" id="video"> -->
				  <source src="" type="video/mp4" id="video">
				</video>
			</div>
		</div>
	</div>
	<input type="hidden" id="id" value="${id}">
</div>
<script>
	$(function() {
		getFilePath();
		
	});
	function getFilePath() {
		if($("#id").val()&&$("#id").val()!=''){
			$.ajax({
				type : "post",
				url : "./shortFilmFilePath.do",
				data : {
					"id" : $("#id").val()
				},
				dataType : "text",
				success : function(data) {
					var html="<source src=\""+ data +"\">"
					$("#video").html(html);
   					$("#video").play()
				},
				error : function(data) {
					alert("请求失败");
				}
			});
		}
	}
</script>